import request from "@/utils/request";

// 查询定制窗帘列表
export function listCurtain(query) {
  return request({
    url: "/md/curtain/list",
    method: "get",
    params: query,
  });
}

// 查询定制窗帘详细
export function getCurtain(customCurtainId) {
  return request({
    url: "/md/curtain/" + customCurtainId,
    method: "get",
  });
}
export function getCurtaingetInfo(customCurtainId) {
  return request({
    url: "/md/curtain/getInfo2/" + customCurtainId,
    method: "get",
  });
}

// 新增定制窗帘
export function addCurtain(data) {
  return request({
    url: "/md/curtain",
    method: "post",
    data: data,
  });
}

// 修改定制窗帘
export function updateCurtain(data) {
  return request({
    url: "/md/curtain",
    method: "put",
    data: data,
  });
}

// 删除定制窗帘
export function delCurtain(customCurtainId) {
  return request({
    url: "/md/curtain/" + customCurtainId,
    method: "delete",
  });
}
